import { ipcMain } from 'electron';
import {createClient,sendCommand} from "./tcp/client"
import {setupDbIpcHandlers} from "./db/dbHandler"

export function setupIpcHandlers() {
  ipcMain.handle('create-client', (event, clientId) => createClient(event, clientId));
  ipcMain.handle('send-command', (event, clientId, command) => sendCommand(event, clientId, command));
  
  setupDbIpcHandlers();
}


